package com.example.springboot2.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_role")
public class TRole {
  private static final long serialVersionUID = 1L;

  /**
   * 角色ID
   */
  @TableField("role_id")
  private String roleId;

  /**
   * 角色名称
   */
  @TableField("role_name")
  private String roleName;

  /**
   * 创建时间
   */
  @TableField("create_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
  private Date createTime;

  /**
   * 更新时间
   */
  @TableField("update_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
  private Date updateTime;

}
